# Maintainer: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
pkgname=tree-sitter-hare
pkgver=0_git20230616
_commit="7d9080c73eacb7b22900a71320058025615d57fa"
pkgrel=1
pkgdesc="Hare grammar for tree-sitter"
url="https://git.sr.ht/~ghishadow/tree-sitter-hare"
arch="all"
license="GPL-3.0"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="
	$pkgname-$_commit.tar.gz::https://git.sr.ht/~ghishadow/tree-sitter-hare/archive/$_commit.tar.gz
	"
options="!check"  # no tests for shared lib
builddir="$srcdir/$pkgname-$_commit"

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
3e817ae02b39f67a32c2564db5961017736133a0afc747fe86c73c7910c881e57cc6ad3b9e473628e301759e60e20b45a8ad3df30147df93d094f49885befe5f  tree-sitter-hare-7d9080c73eacb7b22900a71320058025615d57fa.tar.gz
"
